
const express = require('express');
const bodyParse = require('body-parser');
const app = express();
const PORT = process.env.PORT || 8080;


app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(bodyParse.json());
app.use(bodyParse.urlencoded({extended:false}));


const loginRouter = require('../routes/login')
const userInfoRouter = require('../routes/userInfo')

app.use('/login',loginRouter)
app.use('/my',userInfoRouter)

app.listen(PORT,()=>{
  console.log('启动服务...'+PORT)
})